package com.mlethe.android.demo.utils;

import com.mlethe.library.utils.app.SharedPreferencesUtil;

/**
 * @author Mlethe
 * @date 2020/9/2
 */
public class SpUtil extends SharedPreferencesUtil {
    private SpUtil() {
    }

    /**
     * 设置扫描识别声音是否开启
     *
     * @param isOpen true 开启, false 关闭
     */
    public static void setSoundOpen(boolean isOpen) {
        setValue("soundOpen", isOpen);
    }

    /**
     * 获取扫描识别声音状态
     *
     * @return true 开启, false 关闭
     */
    public static boolean getSoundOpen() {
        return getValue("soundOpen", true);
    }
}
